Repository navigation
[4.3] Add PHP 8.6 support - #161
Merged
Merged
Conversation
Backport of #160 to the 4.3 branch: allow ~8.6.0 in composer.json and add 8.6 to the PHPUnit matrix. The test change in #160 is not needed here. testFailWriteXMLReportsWarning, which asserted the exact warning text PHP 8.6 changed, was added on main after 4.2.0. (cherry picked from commit 281a375) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Backport of the applicable parts of 7ffe1aa. GitHub's ubuntu-latest is now ubuntu-26.04, whose libxml2 2.15 no longer reports HTML parse errors, so testFailedParseHTMLElement failed on every PHP version. - Skip that test when libxml parses HTML as HTML5, probed at runtime - Run the coverage job on ubuntu-24.04, and only on PHP 8.3 (the old include applied report: true to every job) - Bump actions/checkout to v7 and codecov/codecov-action to v7 (cherry picked from commit 7ffe1aa) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.3 #161 +/- ##
======================================
Coverage ? 89.07%
Complexity ? 1339
======================================
Files ? 26
Lines ? 2992
Branches ? 0
======================================
Hits ? 2665
Misses ? 327
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #160 to
4.3, a new branch cut from the4.2.0tag, so PHP 8.6 support can ship as a 4.3.0 release without the unreleased behaviour changes onmain.Add PHP 8.6 support (cherry-pick of #160)
composer.json: allow~8.6.0. The description now says "PHP 7.0 to 8.6"; the 7.0 lower bound in that text was already on 4.2.0 and is left as it was.8.6to the PHPUnit matrix.CHANGELOG.md: add "Add support for PHP 8.6" under Unreleased.The test change from #160 is not included.
testFailWriteXMLReportsWarningwas added onmainafter 4.2.0 and doesn't exist on this branch.Fix CI on ubuntu-26.04 (partial cherry-pick of 7ffe1aa)
This is needed to get CI green on this branch at all. It isn't related to 8.6.
ubuntu-latestis now ubuntu-26.04, whose libxml2 2.15 no longer reports HTML parse errors, sotestFailedParseHTMLElementfailed on every PHP version. Frommain's fix:TestCase::requireLegacyHtmlParser()skips that test when libxml parses HTML as HTML5, probed at runtime.ubuntu-24.04, and only on PHP 8.3. Before, theincludeused the wrong key and setreport: trueon every job.actions/checkoutandcodecov/codecov-actionare bumped to v7.htmlqp()behaviour note is added to the changelog.The issue #65 test changes and the
examples.ymlbump are left out, because those files don't exist on 4.2.0.Verified
create_functiontests, which always skip on PHP 8+.🤖 Generated with Claude Code